﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">
    <div id="content-body-left">
        <!-- box tuor trong nuoc-->
        <div class="box-left">
            <div class="round-content">
                <div class="title-box-register">
                    <h2 class="title-text">ĐĂNG KÝ THÀNH VIÊN</h2>
                </div>
                <div class="round-box-rigister">
                    <!-- dang ky thanh vien-->
                    <div id="tabs1" style="margin: 10px;">
                       <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
                    <table class="tbl-user-info">
                    	<tbody>
                            <tr>
                        	<td class="icon-col"><i class="sprite-be u-username"></i> <span class="label">User name:</span></td>
                            <td class="name-col"><div class="control-group">
                                 <asp:TextBox ID="txtUsername" runat="server" CssClass="normal-input"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Chưa nhập username" ControlToValidate="txtUsername" ForeColor="Red"></asp:RequiredFieldValidator>
                                <%--<input name="hoten" type="text"  id="Text2" value="" >--%>
                              </div></td>
                     	</tr>
                             <tr>
                        	<td class="icon-col"><i class="sprite-be u-password"></i> <span class="label">Password:</span></td>
                            <td class="name-col"><div class="control-group">
                                 <asp:TextBox ID="txtPassword" runat="server"  CssClass="normal-input" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Chưa nhập Password" ControlToValidate="txtPassword" ForeColor="Red"></asp:RequiredFieldValidator>
                              </div></td>
                     	</tr>
                              <tr>
                        	<td class="icon-col"><i class="sprite-be u-password"></i> <span class="label">RePassword:</span></td>
                            <td class="name-col"><div class="control-group">
                                 <asp:TextBox ID="txtRepassword" runat="server"  CssClass="normal-input" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" Display="Dynamic" runat="server" ErrorMessage="Nhập lại Password" ControlToValidate="txtRepassword" ForeColor="Red"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator3" runat="server" 
            ControlToCompare="txtPassword" ControlToValidate="txtRepassword" Display="Dynamic" 
            ErrorMessage="Hai mật khẩu khác nhau" ForeColor="Red"></asp:CompareValidator>
                              </div></td>
                     	</tr>
                            <tr>
                        	<td class="icon-col"><i class="sprite-be u-fullname"></i> <span class="label">Họ tên:</span></td>
                            <td class="name-col"><div class="control-group">
                                 <asp:TextBox ID="txtFullName" runat="server"  CssClass="normal-input"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Chưa nhập họ tên" ControlToValidate="txtFullName" ForeColor="Red"></asp:RequiredFieldValidator>
                           <%--     <input name="hoten" type="text" id="hoten" value="" >--%>
                              </div></td>
                     	</tr>
                    	<tr>
                        	<td class="icon-col"><i class="sprite-be icon-ngaysinh"></i> <span class="label">Ngày tháng năm sinh:</span></td>
                        	<td class="name-col">
                                <asp:TextBox ID="txtBirthday" runat="server" CssClass="normal-input input-small date"></asp:TextBox>
                           		<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Chưa nhập ngày sinh" ControlToValidate="txtBirthday" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                     	</tr>
                    	
                        <tr>
                        	<td class="icon-col"><i class="sprite-be u-sex"></i> <span class="label">Giới tính:</span></td>
                            <td class="name-col"><div class="control-group">
                                <asp:RadioButtonList ID="rdo_gioitinh" runat="server" BorderStyle="None" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Selected="True" Value="True">Nam</asp:ListItem>
                                    <asp:ListItem Value="False">Nữ</asp:ListItem>
                                </asp:RadioButtonList>
                            </div></td>
                     	</tr>
                    	<tr>
                        	<td class="icon-col"><i class="sprite-be u-phone"></i> <span class="label">Điện thoại:</span></td>
                            <td class="name-col"><div class="control-group">
                                <asp:TextBox ID="txtPhone" runat="server" CssClass="normal-input"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Chưa nhập điện thoại"  ControlToValidate="txtPhone" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                 <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPhone" Display="Dynamic" ForeColor="Red" ErrorMessage="Điện thoại chưa đúng" ValidationExpression="0\d{9,10}"></asp:RegularExpressionValidator>
                              </div></td>
                     	</tr>
                        
						<tr>
                        	<td class="icon-col"><i class="sprite-be u-honnhan"></i> <span class="label">Email:</span></td>
                            <td class="name-col"><div class="control-group">
                                 <asp:TextBox ID="txtEmail" runat="server" CssClass="normal-input"></asp:TextBox>
                               <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Chưa nhập email" ControlToValidate="txtEmail" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" ErrorMessage="Email sai định dạng" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                              </div></td>
                      	</tr>
						<tr>
                        	<td class="icon-col"><i class="sprite-be u-diachi"></i> <span class="label">Địa chỉ:</span></td>
                        	<td class="name-col">
                              <div class="control-group">
                                  <asp:TextBox ID="txtAddress" runat="server" CssClass="normal-input" ></asp:TextBox>
                                  <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Chưa nhập địa chỉ" ControlToValidate="txtAddress" ForeColor="Red"></asp:RequiredFieldValidator>
                              </div>
							</td>
                      	</tr>
                           
						<tr>
                        	<td colspan="2" align="center">
                             <%--   <input type="submit" class="blue-btn" value="Lưu thông tin">--%>
                                   <asp:Button ID="btnInsert" runat="server" Text="Đăng ký"  CssClass="blue-btn" OnClick="btnInsert_Click1" />
                           	</td>
                      	</tr>
                   	</tbody></table>
                    
        </div>
                    <!-- end dang ky thanh vien-->
                </div>

            </div>
        </div>
        <!-- end tour trong nuoc-->
    </div>
</asp:Content>

